using System.Collections.Generic;
using System.Linq;

namespace Jerry.UiFrame
{
    public static class RedPoints
    {
        public const string Root = "Root";

        /// <summary>
        ///只需要填入最终的叶子节点
        /// </summary>
        /// <value></value>
        internal static string[] TreeNodes =
        {
           
        };
        
        /// <summary>
        /// 节点必须以Root_开头
        /// </summary>
        /// <param name="nodeName"></param>
        public static void AddNode(string nodeName)
        {
            if (!TreeNodes.Contains(nodeName))
            {
                var newList = new List<string>(TreeNodes) {nodeName};
                TreeNodes = newList.ToArray();
            }
        }

    }
}